public class MaoPao {
    public static void main(String[] args) {
        int[] score={10,20,60,40};
        for (int i=0;i<score.length-1;i++){
            for (int j=0;i<score.length-i-1;i++){
                if (score[j]>score[j+1]){
                    int b=score[j];
                    score[j]=score[j+1];
                    score[j+1]=b;
                }
            }
        }
        for (int num :score){
            System.out.println(num);
        }
    }
}
